﻿package plugin.newguanwei
{
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import view.*;

    public class Newguanwei extends FlashUIBase
    {
        private var _ui:NewGuanWeiCtrl;

        public function Newguanwei()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/guanwei.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            this._ui = new NewGuanWeiCtrl(close);
            mGUI = this._ui;
            return;
        }// end function

        override protected function openRefresh() : void
        {
            super.openRefresh();
            (mGUI as NewGuanWeiCtrl).init(int(data));
            (mGUI as NewGuanWeiCtrl).yupeiCtrl.openRefresh();
            return;
        }// end function

        override protected function closeComplete() : void
        {
            super.closeComplete();
            this._ui.closeComplete();
            return;
        }// end function

    }
}
